"""
工具模块
"""
from .decision_logger import (
    DecisionLogger,
    CheckResult,
    get_decision_logger,
    close_decision_logger
)

# 延迟导入需要额外依赖的模块
def _get_trade_analyzer():
    from .trade_analyzer import TradeAnalyzer
    return TradeAnalyzer

# 信号格式化工具
from .signal_formatter import (
    SignalFormatter,
    TradeFormatter,
    SignalType,
    ConditionType,
    format_signal,
    format_compact,
    format_detailed,
    extract_condition_type
)

__all__ = [
    'DecisionLogger',
    'CheckResult',
    'get_decision_logger',
    'close_decision_logger',
    # 信号格式化工具
    'SignalFormatter',
    'TradeFormatter',
    'SignalType',
    'ConditionType',
    'format_signal',
    'format_compact',
    'format_detailed',
    'extract_condition_type',
]

